<%@page import="monster.comm.util.DateUtil"%>
<%@page import="monster.flight.comm.entity.vo.FlightBay"%>
<%@page import="sun.jdbc.rowset.CachedRowSet"%>
<%@page import="monster.flight.comm.entity.vo.Flight_info"%>
<%@page import="monster.comm.database.DBManager"%>
<%@page import="monster.comm.util.SysConstant"%>
<%@page import="monster.comm.util.UserService"%>
<%@page import="monster.comm.util.Tool"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String flight_change_no=Tool.getRequest("flight_change_no",request);//必传参数
String list="";
if(flight_change_no.length()==0){
	out.println("{\"id\":-101,\"flight_change_no\":\"flight_change_no没有传入！\"}");
	return;
}
UserService user = (UserService) session.getAttribute(SysConstant.SESSION_NAME);//获得session里面的登陆信息
if(1==2){
	out.println("{\"id\":-100,\"name\":\"没有登录\"}");
	return;
}else{
	try{
		StringBuffer result = new StringBuffer(1000);
		Map<String,FlightBay> bay_map= new TreeMap<String,FlightBay> ();//飞机港位
		
		
		DBManager db = new DBManager();
		String sql = "update FLIGHT_CHANGE_INFO set IS_CLOSE_ALERT='1' "
					+"   WHERE FLIGHT_CHANGE_NO="+flight_change_no;
		db.update(sql);
		
		 list="{\"id\":100}";
	}catch(Exception e){
		 e.printStackTrace();
		 list="{\"id\":-200,\"name\":\"程序异常\"}";
	}
	System.out.println(list);
	out.println(list);
}
%>
